

let cn = require("./Localization.js")

let fs = require("fs")
let path = "loot"
let str = fs.readFileSync("./"+path+".xml").toString()


// name="baseTier0"


str = str.replace(/name="([^"]+)"/g,(v, a1) => {
    return `name="${cn[a1]?.cn || a1}"`
});


fs.writeFileSync("./"+path+"_cn.xml", str)


